Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRO-16890 : Enforce required flags for provar:metadatacache #26

Merged
merged 5 commits into from
Aug 28, 2020

Conversation

MayankNehru
Copy link
Contributor

The command started executing even when required flags were not given. Changed that to give error in typescript itself. Also made changes to make sure that the flags work correctly in tandem.

The command started executing even when required flags were not given.
Changed that to give error in typescript itself. Also made changes to
make sure that the flags work correctly in tandem.
Copy link
Contributor

@riteshnahar riteshnahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do necessary changes in CHANGELOG.md file as well

return {};
}

if (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to:
if (!["Reload", "Refresh", "Reuse"].includes(metadataLevel))

this.ux.error(
'[ERROR] No valid user org found to download metadata. Terminating command.'
);
return {};
}

const userInfoString = provarDxUtils.prepareRawProperties(
const userInfoString = connections && userInfo == null ? "NA" : provarDxUtils.prepareRawProperties(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userInfo === null

Corrected conditional checks to use "===" & '!==' for comparison and
renamed variables with self explanatory names
return {};
}

(!["Reload", "Refresh", "Reuse"].includes(metadataLevel)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an if statement?

if (!["Reload", "Refresh", "Reuse"].includes(metadataLevel)) {

@MayankNehru MayankNehru merged commit 1d25b10 into development Aug 28, 2020
@MayankNehru MayankNehru deleted the PRO-16890 branch August 28, 2020 11:48
riteshnahar added a commit that referenced this pull request Sep 11, 2020
* PRO-16810: ProvarDX Incorrect Help messages (#23)

-   Updated help messages for runtests, validate commands displayed on running `sfdx provar --help`
-   Updated company name in LICENSE.md

* PRO-16923: ProvarDX runtests fails to handle special characters in Scratch Org Passwords properly (#25)

* PRO-16923: ProvarDX runtests fails to handle special characters in Scratch Org Passwords properly

* PRO-16923: Special characters were causing issues on different OS so encoded the password

* PRO-16897: ProvarDX: Runtests secrets flag override incorrectly documented

* PRO-16897: ProvarDX: Runtests secrets flag override incorrectly documented

* PRO-16890 : Enforce required flags for provar:metadatacache (#26)

* PRO-16890 : Enforce required flags for provar:metadatacache

The command started executing even when required flags were not given.
Changed that to give error in typescript itself. Also made changes to
make sure that the flags work correctly in tandem.

* PRO-16890 : Implement review comments and add change log

* PRO-16890 : Implement review comments

Corrected conditional checks to use "===" & '!==' for comparison and
renamed variables with self explanatory names

* PRO-16890 : Implement review comments

Co-authored-by: mayank.nehru <mayank.nehru@HP-Mayanknehru>

* PRO-17213: ProvarDX 0.3.0 release (#27)

Bumped version to 0.3.0

Co-authored-by: Mayank Nehru <mayank.nehru@provartesting.com>
Co-authored-by: mayank.nehru <mayank.nehru@HP-Mayanknehru>
Co-authored-by: ProvarTesting <6640365+ProvarTesting@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants